﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Views/Shared/Site.Master" Inherits="System.Web.Mvc.ViewPage<Entity.PagedList<Entity.Car_Rental.LevelMsg>>" %>

<asp:Content ID="Content1" ContentPlaceHolderID="TitleContent" runat="server">
    Index
</asp:Content>

<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" runat="server">

    <h2>留言列表</h2>

    <%: Html.ActionLink("自己建立留言", "Create") %> 
    <table width="100%" cellpadding="3" cellspacing="1" id="listTable" class="liebiao_table">
        <tr>
            <th>主题
            </th>

            <th>建立日期
            </th>
            <th>更新日期
            </th>

            <th>留言者ID
            </th>

            <th></th>
        </tr>

        <% foreach (var item in Model)
           { %>
        <tr>
            <td>
                <%: Html.DisplayFor(modelItem => item.Title) %>
            </td>

            <td>
                <%: Html.DisplayFor(modelItem => item.CreateDate) %>
            </td>
            <td>
                <%: Html.DisplayFor(modelItem => item.UpdateDate) %>
            </td>

            <td>
                <%: Html.DisplayFor(modelItem => item.FromUser) %>
            </td>

            <td>
                <%: Html.ActionLink("详细", "Details", new { id=item.LevelMsgID }) %> |
            <%: Html.ActionLink("删除", "Delete", new { id=item.LevelMsgID }) %> |
                <%: Html.ActionLink("回复", "Delete", new { levelMsgID=item.LevelMsgID }) %>
            </td>
        </tr>
        <% } %>
    </table>
    <%=Html.Pager(Model) %>
</asp:Content>

<asp:Content ID="Content3" ContentPlaceHolderID="ScriptContent" runat="server">
</asp:Content>
